package com.joycessh.domain.auth;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.Size;
import java.util.Date;

@Data
@Builder
public class User {
    private Integer id;

    @ApiModelProperty(value = "用户名", required = true)
    @Size(min=6, max=20)
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @Size(min=8, max=20)
    private String password;

    private Date createTime;

    private Date updateTime;
}